<script src="../protype.js">
</script>
<script src="sel.js">
</script>

<select id='sel1'></select>
<select id='sel2'></select>
<select id='sel3'></select>
<br/>

<input type='button' value='test' id='btn'/>

<script>
	var areaJson = {"sector":
		{"provinces":
		[{"cities":
		[{"districts":
		[{"name":"��ѡ��","value":-4}],"name":"��ѡ��","value":-3}],"name":"��ѡ��","value":-2},
		{"cities":[{"districts":[{"name":"��ѡ��","value":-4}],
		"name":"��ѡ��","value":-3},{"districts":[{"name":"��ѡ��","value":-4},
		{"name":"ddd","value":13},{"name":"eee","value":14},{"name":"fff","value":15}],
		"name":"��ɽ","value":0},
		{"districts":[{"name":"��ѡ��","value":-4},{"name":"ggg","value":16},{"name":"hhh","value":17},{"name":"iii","value":18}],
		"name":"�Ϸ�","value":0}],"name":"����","value":-1},
		{"cities":[{"districts":[{"name":"��ѡ��","value":-4}],"name":"��ѡ��","value":-3},
		{"districts":[{"name":"��ѡ��","value":-4},{"name":"aaa","value":10},{"name":"bbb","value":11},{"name":"ccc","value":12}],
	    "name":"����","value":0},{"districts":[{"name":"��ѡ��","value":-4},{"name":"����","value":7},{"name":"��ɽ","value":8},{"name":"����","value":9}],"name":"����","value":0}],"name":"�㽭","value":-1},{"cities":[{"districts":[{"name":"��ѡ��","value":-4}],"name":"��ѡ��","value":-3},{"districts":[{"name":"��ѡ��","value":-4},{"name":"��¥","value":4},{"name":"����","value":5},{"name":"���","value":6}],"name":"����","value":0},{"districts":[{"name":"��ѡ��","value":-4},{"name":"԰��","value":1},{"name":"����","value":2},{"name":"����","value":3}],"name":"����","value":0}],"name":"����","value":-1}]}}
	;

	var mn = new LevelMenu('sel1', 'sel2', 'sel3', areaJson,'浙江', '杭州', '西湖');

	var btn = ff('btn');
	btn.onclick = function() {
		alert(mn.getValue());
	};

</script>